package com.bw.mallshop;

import androidx.room.Room;

import com.alipay.sdk.app.EnvUtils;
import com.bw.common.BaseApplication;
import com.bw.mallshop.dao.AppDatabase;
import com.bw.mallshop.dao.UserSingle;

public class App extends BaseApplication {

    public AppDatabase db;

    @Override
    public void onCreate() {
        super.onCreate();
        EnvUtils.setEnv(EnvUtils.EnvEnum.SANDBOX);
        db = Room.databaseBuilder(getApplicationContext(),
                AppDatabase.class, "shop").build();
        UserSingle.getInstance().init(this);
    }
}
